package com.gsnd.gsnd21study.mapper;

import com.gsnd.gsnd21study.entity.DRO.UserAndRole;
import com.gsnd.gsnd21study.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity generator.entity.SysUser
 */
@Mapper
public interface SysUserMapper {

    // 查询所有用户，并且携带对应的角色信息
    UserAndRole selectUserAndRoleByUserId(Long userId);

    List<SysUser> selectByPage(@Param("index") Integer index,
                               @Param("count") Integer count);

}




